<?php

require_once($_SERVER['DOCUMENT_ROOT']."/jeng/conf.php");
require_once($jeng_path."/classes/jeng_classes.php");

$jeng_site="";
$jeng_page=""

class JEng extends Site
{
	function __construct()
	{
		$this->conf()->set('jeng_path',$jeng_path)
	}
	
	function __desctuct()
	{
	}
	
	function render($what)
	{
		global $jeng_page,$jeng_site;
		
		$jeng_site=$this;
		
		require_once($this->conf()->get('site_path')."/pages/".$what.".php");
		
		$jeng_page->render();
	}
}

?>